package cn.fingersoft.plugins

import android.app.Application
import androidx.annotation.Keep
import cn.fingersoft.jsapi.plugin.home.HomeTabJSApiPlugin
import com.fingersoft.business.jsapi.JsapiManager
import com.fingersoft.cycle.PluginBase

@Keep
class HomeTabPlugin : PluginBase() {
    /**
     * @return if do not stop,return false; if stop, return true;default is false;
     * */
    override fun onApplicationCreate(application: Application, currentProcessName: String): Boolean {
        val result = super.onApplicationCreate(application, currentProcessName)
        JsapiManager.getInstance().register("www/library/emp-hometab.js", HomeTabJSApiPlugin::class.java)
        return result
    }

    companion object {
        const val TAG = "HomeTabPlugin"
    }
}

